Learn R Programming

SeuratObject (version 5.0.2)

[[.DimReduc: Get Cell Embeddings

Description

Pull cell embeddings from a dimensional reduction

Usage

# S3 method for DimReduc
[[(x, i, j, drop = FALSE, ...)

Value

Cell embeddings for cells i and dimensions j

Arguments

x

A DimReduc object

i

Cell names or indices

j

Dimension identifiers or indices

drop

Coerce the result to the lowest possible dimension; see drop for further details

...

Arguments passed to other methods

See Also

Embeddings

Dimensional reduction object, validity, and interaction methods CreateDimReducObject(), DimReduc-class, DimReduc-validity, [.DimReduc(), dim.DimReduc(), merge.DimReduc(), print.DimReduc(), subset.DimReduc()

Examples

Run this code
pca <- pbmc_small[["pca"]]
pca[[1:10, 1:5]]

Run the code above in your browser using DataLab